package com.xinzhi.savingpot.rminfo.controller;

import com.xinzhi.savingpot.rminfo.service.impl.RminfoImpl;
import com.xinzhi.savingpot.util.BaseResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@Api
@RestController
public class RmInfoController {
    @Autowired
    RminfoImpl rminfo;

    @GetMapping("/getRminfoAll")
    @ApiOperation("悬赏主信息查询")
    public BaseResponse getRminfoAll(@RequestParam("userid") int userid){

        return rminfo.findRminfoAll(userid);
    }
}
